#include<stdio.h>
#include<string.h>
int main()
{
    char s1[200],s2[200];
    gets(s1);
    gets(s2);
    int i,j;
    //while(1)
    //{
        for(i=1;i<strlen(s1);i+=2)
        {
            char tmp=s1[i];
            s1[i]=s1[i-1];
            s1[i-1]=tmp;
        }
        s1[0]=s1[strlen(s1)-1];
        puts(s1);
    //}
    
    return 0;
}